package a.h;

import javax.swing.*;
import java.awt.event.ItemListener;
import java.beans.PropertyVetoException;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

public class kc
  extends gc
  implements w
{
  public static final String y = "EnumOptionItem.itemListener";
  public static final String z = "EnumOptionItem.renderer";
  public static final String A = "backupEnum";
  public static final String B = "backupValue";
  public static final String C = "enum";
  private vc D;
  private Map E;
  private Object[] F;
  static Class G;
  public static int H;
  
  public kc(String paramString)
  {
    this(paramString, null, null);
  }
  
  public kc(String paramString, Object[] paramArrayOfObject, Object paramObject)
  {
    super(paramString, paramObject);
    this.F = paramArrayOfObject;
    this.D = new vc(paramArrayOfObject);
    this.E = new HashMap();
    if (this.D.a(paramObject) < 0)
    {
      if (((ec.t != 0) || (paramArrayOfObject != null)) && (paramArrayOfObject.length > 0)) {
        this.v = paramArrayOfObject[0];
      }
      this.m = true;
    }
  }
  
  public kc(String paramString, Object[] paramArrayOfObject, int paramInt)
  {
    this(paramString, paramArrayOfObject, (paramArrayOfObject != null) && (paramInt > -1) && (paramInt < paramArrayOfObject.length) ? paramArrayOfObject[paramInt] : null);
  }
  
  public String n()
  {
    return "Enum";
  }
  
  public void c(Object paramObject)
  {
    Object localObject = this.v;
    if ((ec.t != 0) || (nb.a(localObject, paramObject)))
    {
      try
      {
        b(B, localObject, paramObject);
      }
      catch (PropertyVetoException localPropertyVetoException)
      {
        return;
      }
      this.v = paramObject;
      a(B, localObject, paramObject);
    }
  }
  
  public Object[] q()
  {
    return this.F;
  }
  
  public void b(Object[] paramArrayOfObject)
  {
    Object[] arrayOfObject = this.F;
    if ((ec.t != 0) || (nb.a(arrayOfObject, paramArrayOfObject)))
    {
      try
      {
        b(A, arrayOfObject, paramArrayOfObject);
      }
      catch (PropertyVetoException localPropertyVetoException)
      {
        return;
      }
      this.F = paramArrayOfObject;
      a(A, arrayOfObject, paramArrayOfObject);
    }
  }
  
  public void a(int paramInt)
  {
    int i = ec.t;
    Object[] arrayOfObject = this.D.b();
    if (arrayOfObject != null)
    {
      if (i == 0)
      {
        if (paramInt <= -1) {
          break label52;
        }
        if (i != 0) {}
      }
      else
      {
        if (paramInt >= arrayOfObject.length) {
          break label52;
        }
        if (i != 0) {
          break label53;
        }
        a(arrayOfObject[paramInt]);
      }
      if (!ec.s) {
        return;
      }
    }
    label52:
    label53:
    b(true);
  }
  
  public int r()
  {
    return this.D.a(this.u);
  }
  
  public Object[] s()
  {
    return this.D.b();
  }
  
  public Object[] b()
  {
    return this.D.b();
  }
  
  public void a(Object[] paramArrayOfObject, Object paramObject)
  {
    c(paramArrayOfObject, paramObject);
  }
  
  public void a(Object[] paramArrayOfObject)
  {
    int i = ec.t;
    if ((i != 0) || (paramArrayOfObject != null)) {
      if (i != 0) {}
    }
    c(paramArrayOfObject, paramArrayOfObject.length > 0 ? paramArrayOfObject[0] : null);
  }
  
  void c(Object[] paramArrayOfObject, Object paramObject)
  {
    int i = ec.t;
    super.a(paramObject);
    Object[] arrayOfObject = this.D.b();
    if ((i != 0) || (arrayOfObject != paramArrayOfObject))
    {
      try
      {
        b(C, arrayOfObject, paramArrayOfObject);
      }
      catch (PropertyVetoException localPropertyVetoException)
      {
        return;
      }
      this.D.a(paramArrayOfObject);
      a(C, arrayOfObject, paramArrayOfObject);
    }
    if (i == 0) {}
    super.b(this.D.a(paramObject) < 0);
  }
  
  public String h()
  {
    int i = ec.t;
    if (i == 0) {
      if (c().equals(Integer.TYPE)) {
        return Integer.toString(this.D.a(this.u));
      }
    }
    if ((i != 0) || (this.u != null)) {
      return this.u.toString();
    }
    return null;
  }
  
  public void b(String paramString)
  {
    int j = ec.t;
    boolean bool = ec.s;
    Object[] arrayOfObject = this.D.b();
    if ((j != 0) || (c().equals(Integer.TYPE)))
    {
      try
      {
        a(Math.max(0, Math.min(arrayOfObject.length - 1, Integer.parseInt(paramString))));
      }
      catch (NumberFormatException localNumberFormatException)
      {
        b(true);
        if (!bool) {
          return;
        }
      }
    }
    else if (arrayOfObject != null)
    {
      int i;
      if (paramString != null)
      {
        i = 0;
        do
        {
          if (i >= arrayOfObject.length) {
            break;
          }
          if (arrayOfObject[i] != null)
          {
            if (j != 0) {
              continue;
            }
            if (paramString.equals(arrayOfObject[i].toString()))
            {
              a(arrayOfObject[i]);
              return;
            }
          }
          i++;
        } while (!bool);
      }
      if (j == 0)
      {
        i = 0;
        do
        {
          if (i >= arrayOfObject.length) {
            break;
          }
          if (paramString == arrayOfObject[i])
          {
            a(arrayOfObject[i]);
            return;
          }
          i++;
        } while (!bool);
      }
    }
    else
    {
      k();
    }
  }
  
  public void e(boolean paramBoolean)
  {
    int i = ec.t;
    if (i == 0)
    {
      if (paramBoolean)
      {
        if (i != 0) {
          break label33;
        }
        a(Integer.TYPE);
      }
    }
    else if (!ec.s) {
      return;
    }
    label33:
    if (i == 0) {}
    a(G == null ? (kc.G = f("java.lang.Object")) : G);
  }
  
  public void b(boolean paramBoolean)
  {
    int i = ec.t;
    if (i == 0) {
      if (!paramBoolean) {
        if (i != 0) {
          break label32;
        }
      }
    }
    label32:
    super.b(this.D.a(this.u) < 0);
  }
  
  public void a(ListCellRenderer paramListCellRenderer)
  {
    a(z, paramListCellRenderer);
  }
  
  public void a(ItemListener paramItemListener)
  {
    a(y, paramItemListener);
  }
  
  public void a(Map paramMap)
  {
    boolean bool = ec.s;
    Iterator localIterator = paramMap.entrySet().iterator();
    do
    {
      if (!localIterator.hasNext()) {
        break;
      }
      Map.Entry localEntry = (Map.Entry)localIterator.next();
      a(localEntry.getKey(), localEntry.getValue());
    } while (!bool);
  }
  
  public void d(Object paramObject)
  {
    a(paramObject, paramObject);
  }
  
  public void a(Object paramObject1, Object paramObject2)
  {
    int i = ec.t;
    this.E.put(paramObject2, paramObject1);
    Object[] arrayOfObject1 = this.D.b();
    if (i == 0) {
      if (arrayOfObject1 != null)
      {
        arrayOfObject2 = new Object[arrayOfObject1.length + 1];
        System.arraycopy(arrayOfObject1, 0, arrayOfObject2, 0, arrayOfObject1.length);
        arrayOfObject2[arrayOfObject1.length] = paramObject2;
        if ((i == 0) && (!ec.s)) {
          break label80;
        }
      }
    }
    Object[] arrayOfObject2 = { paramObject2 };
    label80:
    if ((i != 0) || (arrayOfObject2 != null)) {
      if (i != 0) {}
    }
    c(arrayOfObject2, arrayOfObject2.length > 0 ? arrayOfObject2[0] : null);
  }
  
  public Object t()
  {
    if (ec.t == 0) {
      if (m()) {
        return ec.b;
      }
    }
    Object localObject = this.E.get(this.u);
    return localObject;
  }
  
  public void e(Object paramObject)
  {
    int i = ec.t;
    Iterator localIterator = this.E.entrySet().iterator();
    while (localIterator.hasNext())
    {
      Map.Entry localEntry = (Map.Entry)localIterator.next();
      if (i == 0)
      {
        if (localEntry.getValue() != paramObject)
        {
          if (localEntry.getValue() != null) {
            if (i == 0) {
              if (!localEntry.getValue().equals(paramObject)) {
                break;
              }
            }
          }
        }
        else {
          a(localEntry.getKey());
        }
      }
      else {
        return;
      }
    }
    b(true);
  }
  
  public void a(Object paramObject)
  {
    super.a(paramObject);
    if (ec.t == 0) {}
    super.b(this.D.a(paramObject) < 0);
  }
  
  public void k()
  {
    int i = ec.t;
    super.k();
    Object[] arrayOfObject = b();
    if (i == 0)
    {
      if (nb.a(arrayOfObject, this.F)) {
        this.D.a(this.F);
      }
    }
    else {
      a(C, arrayOfObject, this.F);
    }
    if (i == 0) {}
    super.b(this.D.a(this.u) < 0);
  }
  
  static Class f(String paramString)
  {
    try
    {
      return Class.forName(paramString);
    }
    catch (ClassNotFoundException localClassNotFoundException)
    {
      throw new NoClassDefFoundError(localClassNotFoundException.getMessage());
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.h.kc

 * JD-Core Version:    0.7.0.1

 */